package songhq.jdk8new;

import java.util.function.Function;

public class FunctionDemo {
	public static void main(String[] args) {
		Function<String,String> func = (a)->a.substring(0,2);
		
		String re = func.apply("123456");
		System.out.println(re);
	}
}
